// router/index.ts
import { createRouter, createWebHistory } from 'vue-router';
// import Home from '../views/Home.vue';
import Activities from '../views/ActivityList.vue';
import Login from '../views/Login.vue';
import Register from '../components/Register.vue';
import CreateActivity from '../views/CreateActivity.vue';
import ActivityDaKaList from '../views/ActivityDaKaList.vue';
import ManageActivities from '../views/ManageActivities.vue';
import HomePage from '../views/HomePage.vue';
import Users from '../views/UserList.vue'
import ActivityReview from '../views/ActivityReview.vue'
import ShenActivityList from '../views/ShenActivityList.vue'
import TuiActivityList from '../views/TuiActivityList.vue'
import NotificationManager from '../views/NotificationManager.vue'
import NotificationCarousel from '../components/NotificationCarousel.vue'
import ActivityReviewList from '../views/ActivityReviewList.vue'
import UserInfo from '../views/UserInfo.vue';

const routes = [
    { path: '/', name: 'Login', component: Login },
    { path: '/register', name: 'Register', component: Register },
    {
        path: '/home-page',
        name: 'HomePage',
        component: HomePage,
        children: [
            // { path: '/home', name: 'Home', component: Home},
            { path: '/activities', name: 'Activities', component: Activities},
            { path: '/create-activity', name: 'CreateActivity', component: CreateActivity},
            { path: '/daka-activities', name: 'ActivityDaKaList', component: ActivityDaKaList},
            { path: '/manage-activities', name: 'ManageActivities', component: ManageActivities},
            { path: '/users' ,name: 'Users' ,component: Users },
            { path: '/activity-review' ,name: 'ActivityReview' ,component: ActivityReview },
            { path: '/activity-review-list' ,name: 'ActivityReviewList' ,component: ActivityReviewList },
            { path: '/update-activity' ,name: 'ShenActivityList' ,component: ShenActivityList },
			{ path: '/tuichu-activity' ,name: 'TuiActivityList' ,component: TuiActivityList },
            { path: '/notification-manager' ,name: 'NotificationManager' ,component: NotificationManager },
            { path: '/notification-carousel' ,name: 'NotificationCarousel' ,component: NotificationCarousel },
			{ path: '/users-info' ,name: 'UserInfo' ,component: UserInfo },
        ]
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});


export default router;
